package com.kcs.fxmargin.action;

import com.kcs.common.utils.Constant;
import com.kcs.fxmargin.action.form.MainPageActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;

public class MainPageAction extends FXAction {

	public ActionForward process(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws Exception {
      
		MainPageActionForm bean = null;

        try{
        	System.out.println("+++> MAIN ACTION <+++");
        	
        	bean = (MainPageActionForm)form;
        	
        }catch(Exception e){
        	e.printStackTrace();
        	request.setAttribute(Constant.ERR_ATTR, e+"");
        }finally{
        	bean.setTranCode("");
        }
        
        return mapping.findForward("mainPage");
    }
	
}